var localData = require("../../data/localData.js");
Page({

    /**
     * 页面的初始数据
     */
    data: {

    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function (options) {
        this.setData({ dataList: localData.dataList });
    },

    onSwiperTap: function (e) {
        var idx = e.target.dataset.idx;
        console.log("idx === " + idx);
    },

    onPostTap: function (e) {
        var idx = e.currentTarget.dataset.idx;
        console.log("onPostTap...>>>" + idx);
        wx.navigateTo({
            url: "detail/detail?idx=" + idx,
        })
    }

})